package information;

import information.details.ContactDetails;
import quary.QuaryBridge;

@SuppressWarnings("serial")
public class OutRentedInformation extends AbstractInformation {
	
	private ContactDetails contactDetails = new ContactDetails(800);
	private QuaryBridge quaryBridge;

	public OutRentedInformation(QuaryBridge quaryBridge) {
		super();
		
		this.quaryBridge = quaryBridge;
		
		this.add(contactDetails);
	}

	@Override
	public void populate(int memberID, int b) {
		this.contactDetails.populateDetails(quaryBridge.getMemberData(memberID));
	}

	@Override
	public void clear() {
		contactDetails.clear();
	}

}
